package com.canal.collection.transfer.req;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 注册输入
 * @author yangbo
 * @date 2020-07-04 21:00
 * @description
 * @since
 */
@Getter
@Setter
public class RegReq {

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3456789]\\d{9}$",message = "手机号不符合要求")
    private String phone;

    @NotBlank(message = "验证码不能为空")
    private String code;

    private String ip;

    @NotNull(message = "未知渠道，请重新注册")
    private Integer channelId;
}
